<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template small_vector</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.small__vector_8hpp" title="Header &lt;boost/container/small_vector.hpp&gt;">
<link rel="prev" href="structboost_1_1container_1_1dtl_1_1vector__for__small__vector.html" title="Struct template vector_for_small_vector">
<link rel="next" href="classboost_1_1container_1_1small__vector__allocator.html" title="Class template small_vector_allocator">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1container_1_1dtl_1_1vector__for__small__vector.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.small__vector_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1container_1_1small__vector__allocator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template small_vector</span></h2>
<p>boost::container::small_vector</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.small__vector_8hpp" title="Header &lt;boost/container/small_vector.hpp&gt;">boost/container/small_vector.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> N<span class="special">,</span> <span class="keyword">typename</span> Allocator <span class="special">=</span> <span class="keyword">void</span><span class="special">,</span> 
         <span class="keyword">typename</span> Options <span class="special">=</span> <span class="keyword">void</span><span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">:</span>
  <span class="keyword">public</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">container</span><span class="special">::</span><span class="identifier">small_vector_base</span><span class="special">&lt;</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">void</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">&gt;</span>
<span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>

  <span class="comment">// <a class="link" href="classboost_1_1container_1_1small__vector.html#id109-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a334cc09e2cf91d82b2be4ef106e910e2"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ad8f7e3830166f99c5cd87511b6b582c0"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a38637c1ca96637c4e08c1cf34288ed7f"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a63aabc950d8a39114ff32e48e7e7a943"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a0c19704dc9bfe2ca3db2e351fff5eb7a"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a0a45b21c170a9131683bee5e98341ae4"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a5318ccfbcf667c7d1e25502513be39f7"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ae8caa22f16ac95878ef49e1c5a1ab349"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InIt<span class="special">&gt;</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a7e8a7e9d2ea05cb3d9500d250f2e2fa1"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">InIt</span><span class="special">,</span> <span class="identifier">InIt</span> <span class="identifier">last</span> <span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InIt<span class="special">&gt;</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a33e9dd203171a3f42d1c6101be957e50"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">InIt</span><span class="special">,</span> <span class="identifier">InIt</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="identifier">a</span> <span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ac3c3dd94c198014c668d347a37ce3a47"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ab243138e91f6dcb74d691c0460d5faf8"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a09821717459b14c6484d7ead59c806b8"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">base_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a5dce5b381e07632fa37e9b6df4335c52"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">base_type</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a69cda7deb69bb772d6860ae64d555677"><span class="identifier">small_vector</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ab566c3defe318b950ca1621fb5af238d"><span class="identifier">small_vector</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a3ead7910e7b3f4910da2b5f379998e9a"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">value_type</span> <span class="special">&gt;</span><span class="special">,</span> 
               <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a55874aedfec0b7d4d5fe92c613226150"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a5377cd873587774412aebee3651acb98"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ad9ad0dc4d688059862fffc368b8a98b4"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">base_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a2d15af8a4ef204edb7aa8596fe84b3f9"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">base_type</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1acc7d0cda2760f2450161fd61ebbddf8d"><span class="identifier">swap</span></a><span class="special">(</span><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1container_1_1small__vector.html#doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a505e3a1a1ce16089ccae6db75802b6da"><span class="identifier">shrink_to_fit</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.8.14.37.8.4"></a><h2>Description</h2>
<p><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> is a vector-like container optimized for the case when it contains few elements. It contains some preallocated elements in-place, which can avoid the use of dynamic storage allocation when the actual number of elements is below that preallocated threshold.</p>
<p><code class="computeroutput"><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a>&lt;T, N, Allocator, Options&gt;</code> is convertible to <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1small__vector__base.html" title="Class template small_vector_base">small_vector_base</a>&lt;T, Allocator, Options&gt;</code> that is independent from the preallocated element capacity, so client code does not need to be templated on that N argument.</p>
<p>All <code class="computeroutput"><a class="link" href="classboost_1_1container_1_1vector.html" title="Class template vector">boost::container::vector</a></code> member functions are inherited. See <code class="computeroutput">vector</code> documentation for details.</p>
<p>Any change to the capacity of the vector, including decreasing its size such as with the shrink_to_fit method, will cause the vector to permanently switch to dynamically allocated storage.</p>
<p>
</p>
<div class="refsect2">
<a name="id-1.3.8.14.37.8.4.7"></a><h3>Template Parameters</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> T</pre>
<p>The type of object that is stored in the <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> N</pre>
<p>The number of preallocated elements stored inside <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a>. It shall be less than Allocator::max_size(); </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> Allocator <span class="special">=</span> <span class="keyword">void</span></pre>
<p>The allocator used for memory management when the number of elements exceeds N. Use void for the default allocator </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> Options <span class="special">=</span> <span class="keyword">void</span></pre>
<p>A type produced from <code class="computeroutput">boost::container::small_vector_options</code>. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.8.14.37.8.4.8"></a><h3>
<a name="id109-bb"></a><code class="computeroutput">small_vector</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a334cc09e2cf91d82b2be4ef106e910e2"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ad8f7e3830166f99c5cd87511b6b582c0"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a38637c1ca96637c4e08c1cf34288ed7f"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a63aabc950d8a39114ff32e48e7e7a943"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a0c19704dc9bfe2ca3db2e351fff5eb7a"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a0a45b21c170a9131683bee5e98341ae4"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <a class="link" href="structboost_1_1container_1_1default__init__t.html" title="Struct default_init_t">default_init_t</a><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a5318ccfbcf667c7d1e25502513be39f7"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&amp;</span> v<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ae8caa22f16ac95878ef49e1c5a1ab349"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&amp;</span> v<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InIt<span class="special">&gt;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a7e8a7e9d2ea05cb3d9500d250f2e2fa1"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">InIt</span> first<span class="special">,</span> <span class="identifier">InIt</span> <span class="identifier">last</span>  BOOST_CONTAINER_DOCIGN<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> InIt<span class="special">&gt;</span> 
  <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a33e9dd203171a3f42d1c6101be957e50"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">InIt</span> first<span class="special">,</span> <span class="identifier">InIt</span> last<span class="special">,</span> 
               <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span><span class="identifier">a</span>  BOOST_CONTAINER_DOCIGN<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ac3c3dd94c198014c668d347a37ce3a47"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ab243138e91f6dcb74d691c0460d5faf8"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> other<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a09821717459b14c6484d7ead59c806b8"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">base_type</span> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a5dce5b381e07632fa37e9b6df4335c52"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">base_type</span> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a69cda7deb69bb772d6860ae64d555677"></a><span class="identifier">small_vector</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ab566c3defe318b950ca1621fb5af238d"></a><span class="identifier">small_vector</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;&amp;</span> other<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a3ead7910e7b3f4910da2b5f379998e9a"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">value_type</span> <span class="special">&gt;</span> il<span class="special">,</span> 
             <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&amp;</span> a <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a55874aedfec0b7d4d5fe92c613226150"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a5377cd873587774412aebee3651acb98"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1ad9ad0dc4d688059862fffc368b8a98b4"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">base_type</span> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a2d15af8a4ef204edb7aa8596fe84b3f9"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="identifier">base_type</span> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1acc7d0cda2760f2450161fd61ebbddf8d"></a><span class="identifier">swap</span><span class="special">(</span><a class="link" href="classboost_1_1container_1_1small__vector.html" title="Class template small_vector">small_vector</a> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.boost_container_header_reference.classboost_1_1container_1_1small__vector_1a505e3a1a1ce16089ccae6db75802b6da"></a><span class="identifier">shrink_to_fit</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2009-2018 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1container_1_1dtl_1_1vector__for__small__vector.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.small__vector_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1container_1_1small__vector__allocator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
